<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'questao-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php //echo $form->labelEx($model,'titulo'); ?>
		<?php //echo $form->textField($model,'titulo',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'titulo'); ?>
		<?php $this->widget('application.extensions.eckeditor.ECKEditor', array(
                'model'=>$model,
                'attribute'=>'titulo',
				'config' => array(
						'toolbar'=>array(
								array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
								array( 'Image', 'Link', 'Unlink', 'Anchor' ) ,
						),
				),
                )); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'gabarito'); ?>
		<?php echo $form->dropDownList($model,'gabarito', array('A'=>'A','B'=>'B','C'=>'C','D'=>'D','E'=>'E'),array('empty' => 'Selecione...')); ?>
		<?php echo $form->error($model,'gabarito'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'id_assunto'); ?>
		<?php //echo $form->textField($model,'id_assunto'); ?>
		<?php //echo $form->error($model,'id_assunto'); ?>
		
		<?php echo CHtml::activeDropDownList(

                                          $model,

                                          'id_assunto',

                                          CHtml::listData(Assunto::model()->findAll(), 'id', 'nome'),

                                          array('empty'=>'Escolha um assunto'));?>
	</div>
	
	<div class="row">
		<?php echo CHtml::activeDropDownList(

                                          $model,

                                          'id_prova',

                                          CHtml::listData(Prova::model()->findAll(), 'id', 'id'),

                                          array('empty'=>'Escolha uma prova'));?>
	</div>
	
	<div class="row">
		<span>A.</span><?php echo CHtml::textField('quesito_1'); ?>
	</div>		
	<div class="row">
		<span>B.</span><?php echo CHtml::textField('quesito_2'); ?>
	</div>	
	<div class="row">
		<span>C.</span><?php echo CHtml::textField('quesito_3'); ?>
	</div>
	<div class="row">
		<span>D.</span><?php echo CHtml::textField('quesito_4'); ?>
	</div>	
	<div class="row">
		<span>E.</span><?php echo CHtml::textField('quesito_5'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->